from django.conf.urls import url
from .views import *

urlpatterns = [
    url(r'^api/v1.0/users$',Regisiter.as_view()),
    url(r'^api/v1.0/session$',Login.as_view()),
    # 用户中心
    url(r'^api/v1.0/user/$', UserInfoView.as_view()),
    # 修改用户名
    url(r'^api/v1.0/user/name$', UpdateUsernameView.as_view()),
    # 上传用户头像
    url(r'^api/v1.0/user/avatar$', UploadUseravatarView.as_view()),
    # 用户实名认证
    url(r'^api/v1.0/user/auth$', UserAuthView.as_view()),

]